home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’93 / Jon’s FKEYs / ClickLoc ƒ / ClickLoc docs next >
Text File  |  1992-09-15  |  1KB  |  15 lines

  1. ClickLoc FKEY © 1991-92 by Jon Wind
  2.  
  3. Version 2.0
  4.  
  5. This free FKEY makes it easy to obtain screen, window, or object locations or sizes in pixels, using global or local coordinates.
  6.  
  7. Calling the FKEY “freezes” the current screen.  Click and dragging pulls a marquee across the screen.  Current coordinates and height and width of the selection rectangle are displayed in the menu bar.  If the shift, command,  option, or control modifier keys are down when the mouse button is initially pressed and a window is in front, the coordinates are local to that window.  Otherwise global coordinates are used.  When local coordinates are used, an “L” is displayed in the left of the menu; “G” for global coordinates.
  8.  
  9. Pressing a key restores the menu bar; use the Enter key to copy the current selection’s coordinates to the clipboard in the form “left,top,right,bottom,” just the way the SetRect procedure wants it.  I’ve found this feature quite useful for obtaining local coordinates for the drag command in HyperCard.
  10.  
  11. Press the Caps Lock key to overlay a 50 by 50 pixel grid onto the screen.
  12.  
  13. If executed on a machine running in color, the current menu colors will be used to display the information.
  14.  
  15. This FKEY ID is 7.  It can be installed with Suitcase or copied into the System File using ResEdit, renumbering as necessary.